import { ElNotification , ElMessageBox } from "element-plus";

export function toast(message, type = "success") {
	ElNotification({
		message,
		type,
		duration: 2000,
	});
}

export function open( text , type = 'success' ){
	return ElMessageBox.confirm( text , '' , {
		confirmButtonText: '确认',
		cancelButtonText: '取消',
		type,
	})
}
